<?php

include_once ("../Application/config/config.php");
set_include_path(realpath(dirname(__FILE__)."/../Application/library").PATH_SEPARATOR.get_include_path());

require_once ("Zend/Loader/Autoloader.php");
Zend_Loader_Autoloader::autoload('Zend_Loader');

// setup controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->addModuleDirectory('../Application/modules');
$frontController->setDefaultModule('default');
$frontController->setDefaultControllerName('frontend');
$layout = Zend_Layout::startMvc(array(
									'layout'     => 'frontend',
									'layoutPath' => '../Application/layouts',
									'contentKey' => 'content'
								));

$frontController->dispatch();